-- GENERATED SPELL FOR [Azure Scale-Binder] --


function spell0_26735(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(38881,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26735', 10500, 1)
end

function spell1_26735(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(56969,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26735', 10500, 1)
end

function spell2_26735(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(15586,pUnit)
pUnit:RegisterEvent('Sorts_26735', 3500, 1)
end

function spell3_26735(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(61326,pUnit)
pUnit:RegisterEvent('Sorts_26735', 2000, 1)
end

function Sorts_26735(pUnit, Event)
local choix_sorts_26735 = math.random(0, 3)
if choix_sorts_26735 == 0 then
pUnit:RegisterEvent('spell0_26735', 1, 1)
end
if choix_sorts_26735 == 1 then
pUnit:RegisterEvent('spell1_26735', 1, 1)
end
if choix_sorts_26735 == 2 then
pUnit:RegisterEvent('spell2_26735', 1, 1)
end
if choix_sorts_26735 == 3 then
pUnit:RegisterEvent('spell3_26735', 1, 1)
end
end

function mob26735_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26735', math.random(1500, 3000), 1)
end

function mob26735_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26735_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26735_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26735, 1, 'mob26735_Action')
RegisterUnitEvent(26735, 2, 'mob26735_Leave')
RegisterUnitEvent(26735, 3, 'mob26735_Kill')
RegisterUnitEvent(26735, 4, 'mob26735_Die')
